package com.egoo.ticket.server.dao;

import com.egoo.ticket.server.pojo.dto.WorkOrderTriggerRelationDto;
import com.egoo.ticket.server.pojo.entity.WorkOrderTriggerRelation;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
@Component
public interface WorkOrderTriggerRelationDao {

	/**
	 * TODO
	 * @param id
	 * @return
	 */
    int deleteByPrimaryKey(String id);

	/**
	 * TODO
	 * @param map
	 * @return
	 */
	int deleteByTriggerId(Map<String, Object> map);

	/**
	 * TODO
	 * @param record
	 * @return
	 */
    int insert(WorkOrderTriggerRelation record);

	/**
	 * TODO
	 * @param record
	 * @return
	 */
	int insertSelective(WorkOrderTriggerRelation record);

	/**
	 * TODO
	 * @param id
	 * @return
	 */
    WorkOrderTriggerRelation selectByPrimaryKey(String id);

	/**
	 * TODO
	 * @param dto
	 * @return
	 */
	List<WorkOrderTriggerRelation> selectByCondition(WorkOrderTriggerRelationDto dto);

	/**
	 * TODO
	 * @param record
	 * @return
	 */
    int updateByPrimaryKeySelective(WorkOrderTriggerRelation record);

	/**
	 * TODO
	 * @param record
	 * @return
	 */
	int updateByPrimaryKey(WorkOrderTriggerRelation record);
}